# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-colorzero
pkgver=2.0
pkgrel=2
pkgdesc="Another color manipulation library for Python"
url="https://colorzero.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="https://github.com/waveform80/colorzero/archive/refs/tags/release-$pkgver/py3-colorzero-$pkgver.tar.gz"
builddir="$srcdir/colorzero-release-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
55c507e4ceeff9feb00db570f50c782d68e59cb84fbf5f2501c1e0d23017e55b854e8ff6ab62424e331afa13317cc87695384292b8485fab780094c6784001bc  py3-colorzero-2.0.tar.gz
"
